function main() {
    debugger
    const self = this;
    var formPartEle = self.$$root().$$("form_part_agocyp");
    var humanId = formPartEle.$$getRenderElement().getDocumentNo();

    if (!humanId) {
        // 新增
        formPartEle.$$getRenderElement().onSave()
            .then((res) => {
                let documentNo = res.result.documentNo;
                formPartEle.$$getRenderElement().$$setExtraParams({
                    "documentNo": documentNo
                });
            });

    } else {
        formPartEle.$$getRenderElement().onSave().then((res) => {
            console.log(res);
        });
    }
}
